package com.deyuanyun.pic.pipe.domain.exceldomain;

import com.caixu.beanvalidateutil.annotations.CodeVail;
import com.caixu.beanvalidateutil.annotations.DataValidate;
import com.deyuanyun.pic.pipe.support.validatefun.CodeValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeLineValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeSegmentValidata;

import java.util.Date;


public class ElbowImportDemo {

	private String code;
	
	@DataValidate(notNull = true,myFunction=PipeLineValidata.class,myFunctionMessage="管道不存在")
	private String pipeLineId;

	@DataValidate(notNull = true,myFunction=PipeSegmentValidata.class,myFunctionMessage="管段不存在！")
	private String pipeSegmentId;

	@DataValidate(lengthLimit="32",lengthLimitMessage="长度不能大于32")
	private String elbowNumber;

	
    @DataValidate(notNull = true,type = Number.class,numberRang="{-180,180}",notNullMessage="x坐标范围只能是-180至180")    
    private String x;
	
	@DataValidate(notNull = true,type = Number.class,numberRang="{-90,90}",notNullMessage="y坐标范围只能是-90至90")
    private String y;
	    
	@DataValidate(notNull = true,type = Number.class,numberRang="{-99999,999999}",notNullMessage="z坐标范围只能是0至999999米")
    private String z;

	@CodeVail(majorCode="MATERIAL",fieldName="材质")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String material;

	@CodeVail(majorCode="COATINGMATERIAL",fieldName="防腐材料")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String antisepticMaterial;

	@DataValidate(numberRang="{0,50}",type = Number.class)
    private String pressureRating;

	@DataValidate(numberRang="{0,359}",type = Number.class)
    private String elbowAngle;

	@CodeVail(majorCode="ELBOW_TYPE",fieldName="弯头类型")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String elbowType;

	@DataValidate(type = Number.class)
    private String elbowCurvrad;

	@DataValidate(numberRang="{0,2000}",type = Number.class)
    private String outletDiameter;

	@DataValidate(numberRang="{0,200}",type = Number.class)
    private String outletWallThickness;

	@CodeVail(majorCode="CONNECTION_TYPE",fieldName="出口连接类型")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String outletConnectionType;

	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
    private String manufacturer;

	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
    private String coatingManufacturer;

	 @DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
    private String manufacturedDate;

	@DataValidate(lengthLimit="50",lengthLimitMessage="长度不能大于50")
    private String recorder;

    @DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
    private String recordtime;
	    
	@DataValidate(lengthLimit="1000",lengthLimitMessage="长度不能大于1000")
    private String createRemark;

		public String getPipeLineId() {
			return pipeLineId;
		}

		public void setPipeLineId(String pipeLineId) {
			this.pipeLineId = pipeLineId;
		}

		public String getPipeSegmentId() {
			return pipeSegmentId;
		}

		public void setPipeSegmentId(String pipeSegmentId) {
			this.pipeSegmentId = pipeSegmentId;
		}

		public String getElbowNumber() {
			return elbowNumber;
		}

		public void setElbowNumber(String elbowNumber) {
			this.elbowNumber = elbowNumber;
		}

		public String getMaterial() {
			return material;
		}

		public void setMaterial(String material) {
			this.material = material;
		}

		public String getAntisepticMaterial() {
			return antisepticMaterial;
		}

		public void setAntisepticMaterial(String antisepticMaterial) {
			this.antisepticMaterial = antisepticMaterial;
		}

		public String getPressureRating() {
			return pressureRating;
		}

		public void setPressureRating(String pressureRating) {
			this.pressureRating = pressureRating;
		}

		public String getElbowAngle() {
			return elbowAngle;
		}

		public void setElbowAngle(String elbowAngle) {
			this.elbowAngle = elbowAngle;
		}

		public String getElbowType() {
			return elbowType;
		}

		public void setElbowType(String elbowType) {
			this.elbowType = elbowType;
		}

		public String getElbowCurvrad() {
			return elbowCurvrad;
		}

		public void setElbowCurvrad(String elbowCurvrad) {
			this.elbowCurvrad = elbowCurvrad;
		}

		public String getOutletDiameter() {
			return outletDiameter;
		}

		public void setOutletDiameter(String outletDiameter) {
			this.outletDiameter = outletDiameter;
		}

		public String getOutletWallThickness() {
			return outletWallThickness;
		}

		public void setOutletWallThickness(String outletWallThickness) {
			this.outletWallThickness = outletWallThickness;
		}

		public String getOutletConnectionType() {
			return outletConnectionType;
		}

		public void setOutletConnectionType(String outletConnectionType) {
			this.outletConnectionType = outletConnectionType;
		}

		public String getManufacturer() {
			return manufacturer;
		}

		public void setManufacturer(String manufacturer) {
			this.manufacturer = manufacturer;
		}

		public String getCoatingManufacturer() {
			return coatingManufacturer;
		}

		public void setCoatingManufacturer(String coatingManufacturer) {
			this.coatingManufacturer = coatingManufacturer;
		}

		public String getManufacturedDate() {
			return manufacturedDate;
		}

		public void setManufacturedDate(String manufacturedDate) {
			this.manufacturedDate = manufacturedDate;
		}

		public String getRecorder() {
			return recorder;
		}

		public void setRecorder(String recorder) {
			this.recorder = recorder;
		}

		public String getRecordtime() {
			return recordtime;
		}

		public void setRecordtime(String recordtime) {
			this.recordtime = recordtime;
		}

		public String getCreateRemark() {
			return createRemark;
		}

		public void setCreateRemark(String createRemark) {
			this.createRemark = createRemark;
		}

		public String getX() {
			return x;
		}

		public void setX(String x) {
			this.x = x;
		}

		public String getY() {
			return y;
		}

		public void setY(String y) {
			this.y = y;
		}

		public String getZ() {
			return z;
		}

		public void setZ(String z) {
			this.z = z;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}
	    
	    
}
